<%@page import="com.group.member.MemberBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<jsp:useBean id="memberDao" class="com.group.member.MemberDAO"/>    
<jsp:useBean id="memberBean" class="com.group.member.MemberBean"/>
<jsp:setProperty property="*" name="memberBean"/>

<%

   boolean result = memberDao.memberInsert(memberBean);
   System.out.println("결과:"+result);
   if(result){
	   //	result가 true일 경우
%>
	<script>
		alert("회원가입 성공");
	</script>
<%
   }else{
		//	result가 true일 경우
%>
	<script>
		alert("회원가입 실패");
	</script>
<%
   }
   response.sendRedirect("login.html");
%>